package com.chcit.handmedicine.entities;

import org.json.JSONException;
import org.json.JSONObject;

public abstract class BaseEntity {
	
	public String RESPONSE_KEY_SUCCESSFLG = "successflg";
	public String RESPONSE_KEY_MESSAGE = "message";

	private String successflg;
	private String message;
	
	public BaseEntity() {
		
	}
	
	public BaseEntity(JSONObject json) throws JSONException {
		if (json != null) {
			successflg = json.getString(RESPONSE_KEY_SUCCESSFLG);
			message = json.getString(RESPONSE_KEY_MESSAGE);
		}
	}
	
	public String getSuccessflg() {
		return successflg;
	}
	public void setSuccessflg(String successflg) {
		this.successflg = successflg;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

}
